package cn.iocoder.yudao.module.resource.controller.admin.usertimetransaction.vo;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 用户时长交易记录分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class UserTimeTransactionPageReqVO extends PageParam {

    @Schema(description = "交易id", example = "2651")
    private String id;

    @Schema(description = "用户id", example = "7113")
    private Long userId;

    @Schema(description = "交易类型, 1: 充值, -1: 消耗", example = "2")
    private Integer transactionType;

    @Schema(description = "交易时长(毫秒)")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Long[] transactionTimeMs;

    @Schema(description = "剩余时长(毫秒)")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Long[] remainingTimeMs;

    @Schema(description = "充值订单ID", example = "10477")
    private Long orderId;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}